package com.gy.def.dataobject;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * 账号表
 */
@Data
@Entity
@DynamicUpdate
@DynamicInsert
@ApiModel(value = "用户")
public class UserTable {

  @Id
  @JsonIgnore
  private String userId;

  @ApiModelProperty(value = "用户账号", example = "sb")
  private String userName;

  @ApiModelProperty(value = "用户密码", example = "sb")
  @JsonIgnore
  private String userPwd;

  @ApiModelProperty(value = "用户昵称", example = "???")
  private String userNick;

  @ApiModelProperty(value = "邮箱号", example = "13333333333@qq.com")
  private String userMail;

  @ApiModelProperty(value = "用户缴电费", example = "108.08")
  private float userPayMoneyEle;

  @ApiModelProperty(value = "用户缴学费", example = "108.08")
  private float userPayMoneyStudy;

  @ApiModelProperty(value = "用户缴重修费", example = "108.08")
  private float userPayMoneyReal;

  @ApiModelProperty(value = "用户选课JsonArr",example = "[{课程的json},{课程的json}]")
  @JsonIgnore
  private String userCourseList;

  @ApiModelProperty(value = "用户类型", example = "用户类型 0用户 1管理员")
  private Integer userType;

  @JsonIgnore
  private String createTime;

}
